package com.daz.teacher.lookScores.action;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.daz.common.jsonToMap.JsonToMap;
import com.daz.common.publicDict.pojo.publicDictPojo;
import com.daz.teacher.lookScores.pojo.StudentCreditPojo;
import com.daz.teacher.lookScores.pojo.StudentScoresPojo;
import com.daz.teacher.lookScores.server.ILookScoresService;
import com.opensymphony.xwork2.ActionSupport;

public class LookScoresAction extends ActionSupport{
	@Autowired
	private ILookScoresService lookScoresService;
	public String jsonString;
	public StudentCreditPojo studentCreditPojo;
	public String searchStudentScores(){
		Map<String, Object> map = JsonToMap.toHashMap(jsonString);
		try {
			studentCreditPojo = lookScoresService.searchStudentScores(map);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
	public String getJsonString() {
		return jsonString;
	}
	public void setJsonString(String jsonString) {
		this.jsonString = jsonString;
	}
	public StudentCreditPojo getStudentCreditPojo() {
		return studentCreditPojo;
	}
	public void setStudentCreditPojo(StudentCreditPojo studentCreditPojo) {
		this.studentCreditPojo = studentCreditPojo;
	}
	
	
}
